package com.ustb.hospital.service;

import com.ustb.hospital.entity.Admins;
import com.ustb.hospital.mapper.AdminsMapper;
import com.ustb.hospital.utils.MybatisUtil;
import org.apache.ibatis.session.SqlSession;

public class AdminsServiceImpl {
    public Admins queryByUsername(String username){
        SqlSession sqlSession= MybatisUtil.getSqlSession();
        AdminsMapper mapper=sqlSession.getMapper(AdminsMapper.class);
        Admins admins=mapper.selectByUsername(username);
        return admins;
    }


}
